Wiki

Clone wiki

CaVa / Install CyanogenMod on Nexus 4

Reference: http://wiki.cyanogenmod.org/w/Install_CM_for_mako

Brief Instructions:

  1. Unlock your device: run fastboot oem unlock in fastboot mode.
  2. Flash recovery onto your device: run fastboot flash recovery your_recovery_image.img in fastboot mode.
  3. Install CyanogenMod from recovery:
  • Boot to RECOVERY mode.
  • Select wipe data/factory reset.
  • Push and install method: Open a command prompt (or Terminal on Mac and Linux) and navigate to the directory holding the package(s) you would like to install. On the device, navigate to the mounts and storage menu. If you see /storage/sdcard0 or /sdcard as a mountable volume, go ahead and mount it. If you do not see one of these partitions, then instead mount the /data partition. Take note of which volume you mounted. Now, push the package(s) to your device (also, see tip below):
  • If you mounted /storage/sdcard0, then: adb push update.zip /storage/sdcard0/
  • If you mounted /sdcard or /data, then: adb push update.zip /sdcard/
  • Go back to the main menu and select install zip.

Introduction to Fastboot:

fastboot is a small tool that comes with the Android SDK that can be used to re-flash partitions on your device. It is an alternative to the recovery mode for doing installations and updates.

Because fastboot mode can start on your device even before Android loads (and can even run when Android isn't installed at all), fastboot mode is useful for updating the firmware quickly, without having to use a recovery mode. In fact, it's frequently the preferred way to initially install the recovery image on many devices. Fastboot can also be used for developer operations like unlocking the bootloader of Google's Nexus devices.

There are two "sides" to using fastboot-- the computer side and the device side. Typically your device first is connected to your computer via a USB cable. Then you boot to the "fastboot mode" on the device. On your computer, you then run the fastboot tool to issue commands. Please note that fastboot commands will ONLY work while the device is in fastboot mode.

Updated